package day2;
/*
 * 输出100-200间素数
 */
public class ThePrime {
	public static void main(String[] args) {
		int count = 0;
		System.out.println("100-200内的素数有：");
		for(int i = 100; i <= 200; i++) {
			for(int j = 2;j <= i; j++ ) {
				if(i % j == 0 && i != j) {
					break;	
				}
				else if(i == j) {
					System.out.print(i + " ");
					count++;
			}
				if(count == 5) {
					count = 0;
					System.out.println();
				}
			}
		}
	}
}
